package com.century.sjt.entity;

import android.content.Context;
import android.graphics.drawable.Drawable;

/**
 * @Description: 弹窗内部子类项（绘制标题和图标）
 * @author: 周玲波
 * @date: 2016/8/26 16:20
 */
public class ActionItem {
	public Drawable mDrawable;
	public CharSequence mTitle;
	public CharSequence mText;
	public ActionItem(Drawable drawable, CharSequence title){
		this.mDrawable = drawable;
		this.mTitle = title;
	}
	
	public ActionItem(Context context, int titleId, int drawableId){
		this.mTitle = context.getResources().getText(titleId);
		this.mDrawable = context.getResources().getDrawable(drawableId);
	}
	
	public ActionItem(Context context, CharSequence title,  CharSequence text) {
		this.mTitle = title;
	    this.mText=text;
	}

	public CharSequence getmTitle() {
		return mTitle;
	}

	public void setmTitle(CharSequence mTitle) {
		this.mTitle = mTitle;
	}
}
